package ooday05;

public class Point {
    /*
    getter/setter
    可以选择性存在（只有getter只读，或只有setter只写）
     */
    private int x;
    private int y;

    public int getX(){ //getter
        return x;
    }
    public void setX(int x){ //setter
        this.x = x;
    }
    public int getY(){ //getter
        return y;
    }
    public void setY(int y){ //setter
        this.y = y;
    }
}
